package com.lmu.travel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

/**
 * @className: ${NAME}
 * @description: ${TODO}
 * @author liuxuhuang
 * @email liuxuhuang3970@qq.com
 * @date ${DATE} ${TIME}
 * @version：1.0
 */

/**
 * 路线表(Route)表实体类
 *
 * @author liuxuhuang
 * @since 2021-06-28 19:05:56
 */

@TableName(value = "route", keepGlobalPrefix = true)
@ApiModel(value = "路线表", description = "")
@Component
public class Route implements Serializable {

    private static final long serialVersionUID = -23571274438383040L;

    private Integer rid;

    private String rname;

    private Double price;

    private String routeintroduce;

    private String rdate;

    private Integer count;

    private Integer cid;

    private String rimage;

    private Integer sid;

    /**
     * 区县的行政区划编码
     */
    @ApiModelProperty(value = "区县的行政区划编码")
    private Integer districtid;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度")
    private Double longitude;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    private Double latitude;

    /**
     * 地址标题
     */
    @ApiModelProperty(value = "地址标题")
    private String title;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址")
    private String address;
    /**
     * 所属分类
     */
    private Category category;
    /**
     * 所属商家
     */
    private Seller seller;
    /**
     * 商品详情图片列表
     */
    private List<RouteImg> routeImgList;
    /**
     * 天气信息
     */
    private WeatherInfo weatherInfo;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getRouteintroduce() {
        return routeintroduce;
    }

    public void setRouteintroduce(String routeintroduce) {
        this.routeintroduce = routeintroduce;
    }

    public String getRdate() {
        return rdate;
    }

    public void setRdate(String rdate) {
        this.rdate = rdate;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getRimage() {
        return rimage;
    }

    public void setRimage(String rimage) {
        this.rimage = rimage;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getDistrictid() {
        return districtid;
    }

    public void setDistrictid(Integer districtid) {
        this.districtid = districtid;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public Seller getSeller() {
        return seller;
    }

    public void setSeller(Seller seller) {
        this.seller = seller;
    }

    public List<RouteImg> getRouteImgList() {
        return routeImgList;
    }

    public void setRouteImgList(List<RouteImg> routeImgList) {
        this.routeImgList = routeImgList;
    }

    public WeatherInfo getWeatherInfo() {
        return weatherInfo;
    }

    public void setWeatherInfo(WeatherInfo weatherInfo) {
        this.weatherInfo = weatherInfo;
    }

    public Route() {
    }

    public Route(Integer rid, String rname, Double price, String routeintroduce, String rdate, Integer count, Integer cid, String rimage, Integer sid, Integer districtid, Double longitude, Double latitude, String title, String address, Category category, Seller seller, List<RouteImg> routeImgList, WeatherInfo weatherInfo) {
        this.rid = rid;
        this.rname = rname;
        this.price = price;
        this.routeintroduce = routeintroduce;
        this.rdate = rdate;
        this.count = count;
        this.cid = cid;
        this.rimage = rimage;
        this.sid = sid;
        this.districtid = districtid;
        this.longitude = longitude;
        this.latitude = latitude;
        this.title = title;
        this.address = address;
        this.category = category;
        this.seller = seller;
        this.routeImgList = routeImgList;
        this.weatherInfo = weatherInfo;
    }

    @Override
    public String toString() {
        return "Route{" +
                "rid=" + rid +
                ", rname='" + rname + '\'' +
                ", price=" + price +
                ", routeintroduce='" + routeintroduce + '\'' +
                ", rdate='" + rdate + '\'' +
                ", count=" + count +
                ", cid=" + cid +
                ", rimage='" + rimage + '\'' +
                ", sid=" + sid +
                ", districtid=" + districtid +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", title='" + title + '\'' +
                ", address='" + address + '\'' +
                ", category=" + category +
                ", seller=" + seller +
                ", routeImgList=" + routeImgList +
                ", weatherInfo=" + weatherInfo +
                '}';
    }
}